﻿#include <iostream>
#include <set>

using namespace std;
class a
{
public:
    int x;
    int y;
    a(int x,int y)
    {
        this->x=x;
        this->y=y;
    }
};

int main()
{
    set<a*> s1;
    a *p=new a (1,1);
    s1.insert(p);//值唯一

    auto it=s1.find(p);
    cout<<(*it)->x<<" "<<(*it)->y<<endl;
    return 0;
}
